/*
建立返回值返回较大值
 */
import java.util.Scanner;
public class MothodDemo04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数:");
        int num1 = sc.nextInt();
        System.out.println("请输入第二个数:");
        int num2 = sc.nextInt();
        int big = big(num1,num2);
        System.out.println("较大值为:"+big);

    }

    public static int big(int num1,int num2){
        int c = 0;
        if (num1>num2){
            c=num1;
        }else{
            c=num2;
        }
        return c;
    }

}
